package com.leo.dao;

import java.util.List;

import com.leo.entity.Admin;
import com.leo.entity.User;

public interface AdminDao {

	public abstract long getCount(boolean checkQueryRight, String searchKey,
			String keyType);

	public abstract Admin findAdmin(String username);

	public abstract void addAdmin(Admin admin);

	public abstract List listUsers(boolean checkQueryRight, String searchKey,
			String keyType, int pageIndex, int pageSize);

	public abstract User findUser(String username);

	public abstract void updateUser(User u);

	public abstract void addUser(User u);

	public abstract void deleteUsers(String usernameSet);

}